import request from '@/utils/request';

export default {
  list(data) {
    return request({
      url: '/api/globalRule/list',
      method: 'POST',
      data
    })
  },
  edit(data) {
    return request({
      url: '/api/globalRule/edit',
      method: 'POST',
      data
    })
  },
  fieldsList(data) {
    return request({
      url: '/api/globalRule/fields',
      method: 'POST',
      data
    })
  },
  enable(data) {
    return request({
      url: '/api/globalRule/enable',
      method: 'POST',
      data
    })
  },
  detail(data) {
    return request({
      url: '/api/globalRule/detail',
      method: 'POST',
      data
    })
  },
  del(data) {
    return request({
      url: '/api/globalRule/del',
      method: 'POST',
      data
    })
  },
  get() {
    return request({
      url: '/api/globalRule/get',
      method: 'POST'
    })
  }
}
